if (window.webkitNotifications) {
	if (window.webkitNotifications.checkPermission() == 0) {
		var n = window.webkitNotifications.createNotification("../../img/logo_s.gif", 'ABshu.com', $("#msg").val());
		//n.display = function() {}
		//n.onerror = function() {}
		//n.onclose = function() {}
		n.onclick = function() {this.cancel();}
		n.replaceId = "abshu";
		n.show();
	}else{
		alert("需要允许桌面通知");
		window.webkitNotifications.requestPermission();
	}
}else{
	alert("浏览器不支持桌面通知");
}